package com.qiang.test1;
/**
 * @package: com.qiang.test1
 * @title: SingleSafeDemo
 * @projectName: burning
 * @description: //TODO
 * @author zhuhongqiang3
 * @date:  2020-09-07 16:19
 * @version: V1.0
 * @retrun com.qiang.test1.burning
 */
public class SingleSafeDemo {

    private static SingleSafeDemo instance = null;
    public SingleSafeDemo() {
    }
    //Double check lock
    public static SingleSafeDemo getInstance(){
        if (instance == null){
            synchronized (SingleSafeDemo.class){
                if (instance == null){
                    instance = new SingleSafeDemo();
                }
            }
        }
        return instance;
    }
}
